﻿using System;
using UnityEngine;

namespace RuntimeGizmos
{
	// Token: 0x02000165 RID: 357
	public struct AxisInfo
	{
		// Token: 0x06000689 RID: 1673 RVA: 0x000387D0 File Offset: 0x000369D0
		public void Set(Transform target, float handleLength, TransformSpace space)
		{
			if (space == TransformSpace.Global)
			{
				this.xDirection = Vector3.right;
				this.yDirection = Vector3.up;
				this.zDirection = Vector3.forward;
			}
			else if (space == TransformSpace.Local)
			{
				this.xDirection = target.right;
				this.yDirection = target.up;
				this.zDirection = target.forward;
			}
			this.xAxisEnd = target.position + this.xDirection * handleLength;
			this.yAxisEnd = target.position + this.yDirection * handleLength;
			this.zAxisEnd = target.position + this.zDirection * handleLength;
		}

		// Token: 0x04000A9D RID: 2717
		public Vector3 xAxisEnd;

		// Token: 0x04000A9E RID: 2718
		public Vector3 yAxisEnd;

		// Token: 0x04000A9F RID: 2719
		public Vector3 zAxisEnd;

		// Token: 0x04000AA0 RID: 2720
		public Vector3 xDirection;

		// Token: 0x04000AA1 RID: 2721
		public Vector3 yDirection;

		// Token: 0x04000AA2 RID: 2722
		public Vector3 zDirection;
	}
}
